package com.ruicar.afs.cloud.account.common.processor.constant;

import com.ruicar.afs.cloud.common.datasync.define.DataLevel;
import com.ruicar.afs.cloud.common.datasync.define.Key;
import lombok.experimental.UtilityClass;

import java.text.MessageFormat;

@UtilityClass
public class VoucherConstant {
    public Key VOUCHER_SYNC_KEY = Key.builder().dataLevel(DataLevel.SYSTEM).key("p-voucher").build();
    public String templateKey(Key key){
        return MessageFormat.format("voucher-biz-data:{0}",key);
    }
    public final String  systemCode="dpxt";//系统代码
    public final String  typeName="多品牌业务";//系统代码
    public final int  querySize=1000;//查询数量
    public final int  batchesSize=1000;//查询数量
    /**
     * 服务开关
     * @return
     */
    public  boolean isOpenFlg() {

        return true;
    }

}
